home *** CD-ROM | disk | FTP | other *** search
/ BBS Toolkit / BBS Toolkit.iso / qbbs / acf514r0.zip / SCANZIP.BAT < prev    next >
DOS Batch File  |  1991-01-27  |  1KB  |  41 lines

  1. @echo off
  2. REM MOVE.BAT - For ACFiles
  3. REM Arguments: %1 - Path to File, %2 - Filename, %3 - Filename Without .EXT
  4. REM Arguments: %4 - Extension of Filename (No ., just EXT)
  5. :
  6. :Check For ARC/LZH/PAK/ZOO/ZIP Files
  7. :IF One of those, goto ZIP
  8. :
  9. if %4 == ARC goto zip
  10. if %4 == LZH goto zip
  11. if %4 == PAK goto zip
  12. if %4 == ZOO goto zip
  13. if %4 == ZIP goto zip
  14. :if it isn't, write original filename to filename via echo
  15. echo %3.%4 >filename
  16. goto end
  17. REM ZIP - This Converts to .ZIP, Scans via. McAffee's Scan
  18. :zip
  19. md 1111
  20. cd 1111
  21. if %4 == LZH lharc e %1%3
  22. if %4 == PAK pak e %1%3
  23. if %4 == ZOO zoo e %1%3
  24. if %4 == ARC pkxarc %1%3
  25. if %4 == ZIP pkunzip %1%3
  26. scan *.*
  27. :if not zip file, then convert to .ZIP
  28. if not %4 == ZIP pkzip %1%3 *.*
  29. :make filename Yes to contain input for the delete statement
  30. echo Y >..\yes
  31. :redirect input from previous file
  32. del *.* <..\yes
  33. cd..
  34. rd 1111
  35. :delete file if it was converted (not .ZIP already)
  36. if not %4 == ZIP del %1%2
  37. :put new filename into file called FILENAME to use for new list, etc.
  38. :acfiles reads this in to find out what it should put as the filename for .LSTs
  39. echo %3.ZIP >filename
  40. :end
  41.